package com.wfy.modules.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.wfy.common.entity.BaseEntity;


/**
 * 区域Entity
 *
 * @author SmartFactory
 * @version 2013-05-15
 */
@TableName(value = "sys_area")
public class Area extends BaseEntity<Area> {

    private static final long serialVersionUID = 1L;

    @TableField(value = "code")
    private String code;

    @TableField(value = "name")
    private String name;

    @TableField(value = "sort")
    private int sort;

    /**
     * 区域类型（1：国家；2：省份、直辖市；3：地市；4：区县）
     */
    @TableField(value = "type")
    private String type;

    public Area() {
        super();
        this.sort = 30;
    }

    public Area(String id) {
        super(id);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Area{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", sort=" + sort +
                ", type='" + type + '\'' +
                '}';
    }
}